package com.alibaba.luohua.order.entity;

import com.alibaba.luohua.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 订单详情表
 *
 * @author luohua
 * @date 2022年3月15日13:42:19
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("pos_order_item")
public class OrderDetailEntity extends BaseEntity {

    @TableId(type = IdType.AUTO)
    private Long itemId;

    private Long orderId;

    private Long goodsId;

    private String goodsName;

    private String goodsCode;

    private Integer goodsType;

    private Long skuId;

    private String specName;

    private String barCode;

    private Long price;

    private Integer quantity;

    private String unit;

    private Long itemAmount;

    private Long extraAmount;

    private Long totalAmount;

    private Byte discountFlag;

    private Long discountAmount;

    private Byte presentFlag;

    private String presentReason;

    private Byte packFlag;

    private String remark;

    private String itemNo;

    private String parentNo;

    private Long packageId;

    private Long groupId;

    private Integer spuCount;

    private String createBy;

    private Date createTime;

    private String updateBy;

    private Date updateTime;

}